package com.smart.tool.pipeline;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author xiaoqiang
 * @Version PipelineContext.java, v 0.1 2024年10月16日 下午11:31 xiaoqiang
 * @Description: TODO
 */
 class PipelineContext {
     private static final ThreadLocal<Map<String,Object>> CONTEXT = new ThreadLocal<>();

     public static Map<String,Object> getContext() {
         return CONTEXT.get();
     }
     public static void setContext(Map<String,Object> context) {
         CONTEXT.set(context);
     }

     public static void removeContext() {
         CONTEXT.remove();
     }

}
